package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@Setter
@Getter
public class SystemDictionary {

    private Long id;

    private String name;

    private String sn;

    private String intro;

    private Long parentId;

    private String parentName;

    //儿子(数据字典明细)
    List<SystemDictionary> children = new ArrayList<>();

    public String toJson() {
        return JSON.toJSONString(this);
    }
}